package com.wing.warehouse.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 仓库货架VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class WarehouseFactoryShelfVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private Long creator;

    /**
     * 修改人
     */
    private Long modifier;

    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 仓库id
     */
    private Long warehouseId;

    /**
     * 仓库库区id
     */
    private Long warehouseAreaId;

    /**
     * 货架列数
     */
    private Integer columnNum;

    /**
     * 货架层数
     */
    private Integer layerNum;

    /**
     * 仓库货架照片
     */
    private String picture;

    /**
     * 状态
     */
    private WarehouseFactoryShelfEntity.Status status;

    /**
     * 状态描述
     */
    @TableField(exist = false)
    private String statusDesc;

    public String getStatusDesc() {
        return status.getDesc();
    }

    /**
     * 序号
     */
    private Integer sortNumber;

    /**
     * 备注描述
     */
    private String description;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * 创建人
     */
    private String creatorName;

    private String warehouseName;

    private String warehouseAreaName;
}
